package com.suyang.syt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.suyang.syt.dao.interfaces.BugTypeDao;
import com.suyang.syt.model.BugType;
import com.suyang.syt.service.interfaces.BugTypeService;

@Service
public class BugTypeServiceImpl implements BugTypeService {
	@Autowired
	private BugTypeDao bugTypeDao;

	@Override
	public List<BugType> findBugType() throws Exception {
		return bugTypeDao.list(" from BugType bt where 1=1 order by bt.orderIndex desc ");
	}

}
